<?php
$sysApps = new sysApps();
echo $sysApps->DBconnect();
$id = $_GET['id'];

$sql = "UPDATE mgm_users SET payment_status = '1' WHERE user_MGM_id = '".$id."' ";
$query = mysql_query($sql);

if (!$query) {
	die(mysql_error());
} else {
	$sysApps->sendEmailActivate($id);
	echo '<p>User successfully activated</p>';
	echo '<div class="smallButton"><a href="index.php?page=activate">Back</div>';
}

?>
